//
//  DwtExchangeFrateCell.m
//  生活小助手
//
//  Created by dwt on 14-8-10.
//  Copyright (c) 2014年 lxz. All rights reserved.
//

#import "DwtExchangeRmbquotCell.h"
#import "DwtExchangeRmbquotData.h"

@implementation DwtExchangeRmbquotCell

-(void)setExchangeRmbquotData:(DwtExchangeRmbquotData *)exchangeRmbquotData{
    _exchangeRmbquotData=exchangeRmbquotData;
    
    self.nameLable.text=[NSString stringWithFormat:@"%@",exchangeRmbquotData.name];
    self.fBuyPriLable.text=[NSString stringWithFormat:@"现汇买入价:%@",exchangeRmbquotData.fBuyPri];
    self.mBuyPriLable.text=[NSString stringWithFormat:@"现钞买入价:%@",exchangeRmbquotData.mBuyPri];
    self.fSellPriLable.text=[NSString stringWithFormat:@"现汇卖出价:%@",exchangeRmbquotData.fSellPri];
    self.mSellPriLable.text=[NSString stringWithFormat:@"现钞卖出价:%@",exchangeRmbquotData.mSellPri];
    self.bankConversionPriLable.text=[NSString stringWithFormat:@"中行折算价:%@",exchangeRmbquotData.bankConversionPri];
    self.dateLable.text=[NSString stringWithFormat:@"发布日期:%@",exchangeRmbquotData.date];
    self.timeLable.text=[NSString stringWithFormat:@"发布时间:%@",exchangeRmbquotData.time];
    
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
    }
    return self;
}

- (void)awakeFromNib
{
    // Initialization code
}

+ (instancetype)exchangeRmbquotCell
{
    return [[[NSBundle mainBundle] loadNibNamed:@"DwtExchangeRmbquotCell" owner:nil options:nil] lastObject];
}

@end
